-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
min_relay_fee check during channel funding #1163
Conversation
Pull Request Test Coverage Report for Build 11630993136Details
💛 - Coveralls |
Something I forgot to add in my "update to 0.18.4" PR which we should add here (since we're using another RPC field of |
768ed0c
to
2e01831
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice and clean! One request and a nit, but we're super close!
To support the new `min_relay_fee_sat_per_kw` in the `lnd` RPC call `EstimateFee`, we need to bump the `minimalCompatibleVersion` to `0.18.4`.
With the `minimalCompatibleVersion` bumped to `0.18.4` we can assume support for the `GetBlockHeader` RPC call. This removes the check for support of the `GetBlockHeader` RPC call.
This commit removes the version check for lnd in the `FundVirtualPsbt` since we can assume the new coin selection mode in the FundPsbt call with the minimal lnd version now being `0.18.4`.
This commit adds `MinRelayFee` to the `WalletAnchor` and uses it during tapchannel funding to check whether the feerate meets the minimum relay fee.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice, LGTM 🎉
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice to remove all these checks - LGTM!
I think we should have a follow-up PR to add similar logic to the minter, I know there have been issues there also.
I think this is the right spot, or at least related:
taproot-assets/tapgarden/planter.go
Line 552 in 420f246
switch { |
This PR adds
MinRelayFee
to theWalletAnchor
and uses it during tapchannel funding to check whether the feerate meets the minimum relay fee.fixes: #1105
This PR depends on lightninglabs/lndclient#200 and uses a pseudoversion of that package.go.mod should be changed before merging this PR,